package com.jackie.coupon.customer.controller;

import com.jackie.coupon.customer.dao.entity.Coupon;
import com.jackie.coupon.customer.service.CouponCustomerService;
import com.jackie.coupon.customer.api.bean.RequestCoupon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * CouponCustomerController
 *
 * @author Jackie Hou
 * @date 2023/11/20 09:13
 * @version 1.0
 */
@RestController
@RequestMapping("coupon-customer")
public class CouponCustomerController {

    @RequestMapping("/requestCoupon")
    public Coupon requestCoupon(@RequestBody RequestCoupon request) {
        return couponCustomerService.requestConpon(request);
    }














    @Autowired
    private CouponCustomerService couponCustomerService;

}
